import os

import celery
import pymysql

pymysql.install_as_MySQLdb()

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'fangtx.settings')

app = celery.Celery(
    'xuanba',
    broker='redis://:123456@47.103.14.99/15'
)

app.autodiscover_tasks(['app_user',])